﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;

namespace BUS
{
    public class RoleBUS
    {
       public List<aspnet_Role> LayDanhSach()
        {
            RoleBUS roleBus = new RoleBUS();
            return roleBus.LayDanhSach();
        }

        public aspnet_Role LayTheoId(Guid Id)
        {
            RoleBUS roleBus = new RoleBUS();
            return roleBus.LayTheoId(Id);

        }


        public void Them(aspnet_Role temp)
        {
            RoleBUS roleBus = new RoleBUS();
            roleBus.Them(temp);

        }

        public void Xoa(aspnet_Role temp)
        {

            RoleBUS roleBus = new RoleBUS();
            roleBus.Xoa(temp);


        }

        public void CapNhat(aspnet_Role temp)
        {
            RoleBUS roleBus = new RoleBUS();
            roleBus.CapNhat(temp);

        }

        /************************************************************************************************************        *                          coder: TRAN KINH LY 
         ***********************************************************************************************************/
        public aspnet_Role LayRoleTheoLoweredRoleName(String lrn)
        {
            RoleDAO RoleDAO = new RoleDAO();
            return RoleDAO.LayRoleTheoLoweredRoleName(lrn);
        }

        /************************************************************************************************************        *                          coder: TRAN KINH LY 
         ***********************************************************************************************************/


    }
}
